package com.ruiysoft.controller.statement.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.util.Objects;

/**
 * StatementListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-01-05T11:49:17.029+08:00")

public class StatementListVo   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("money")
  private String money = null;

  @JsonProperty("shareMoney")
  private String shareMoney = null;

  @JsonProperty("summary")
  private String summary = null;

  @JsonProperty("date")
  private Long date = null;

  @JsonProperty("type")
  private Integer type = null;

  @JsonProperty("isArrival")
  private Boolean isArrival = null;

  public StatementListVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public StatementListVo money(String money) {
    this.money = money;
    return this;
  }

  /**
   * 金额
   * @return money
  **/
  @ApiModelProperty(example = "1", value = "金额")


  public String getMoney() {
    return money;
  }

  public void setMoney(String money) {
    this.money = money;
  }

  public StatementListVo shareMoney(String shareMoney) {
    this.shareMoney = shareMoney;
    return this;
  }

  /**
   * 分润金额
   * @return shareMoney
  **/
  @ApiModelProperty(example = "1", value = "分润金额")


  public String getShareMoney() {
    return shareMoney;
  }

  public void setShareMoney(String shareMoney) {
    this.shareMoney = shareMoney;
  }

  public StatementListVo summary(String summary) {
    this.summary = summary;
    return this;
  }

  /**
   * 简介
   * @return summary
  **/
  @ApiModelProperty(example = "1", value = "简介")


  public String getSummary() {
    return summary;
  }

  public void setSummary(String summary) {
    this.summary = summary;
  }

  public StatementListVo date(Long date) {
    this.date = date;
    return this;
  }

  /**
   * 记账时间戳
   * @return date
  **/
  @ApiModelProperty(example = "1", value = "记账时间戳")


  public Long getDate() {
    return date;
  }

  public void setDate(Long date) {
    this.date = date;
  }

  public StatementListVo type(Integer type) {
    this.type = type;
    return this;
  }

  /**
   * 类型（1，收入，2，支出）
   * @return type
  **/
  @ApiModelProperty(example = "1", value = "类型（1，收入，2，支出）")


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public StatementListVo isArrival(Boolean isArrival) {
    this.isArrival = isArrival;
    return this;
  }

  /**
   * 状态（false，入账，true，到账）
   * @return isArrival
  **/
  @ApiModelProperty(example = "true", value = "状态（false，入账，true，到账）")


  public Boolean isIsArrival() {
    return isArrival;
  }

  public void setIsArrival(Boolean isArrival) {
    this.isArrival = isArrival;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    StatementListVo statementListVo = (StatementListVo) o;
    return Objects.equals(this.id, statementListVo.id) &&
        Objects.equals(this.money, statementListVo.money) &&
        Objects.equals(this.shareMoney, statementListVo.shareMoney) &&
        Objects.equals(this.summary, statementListVo.summary) &&
        Objects.equals(this.date, statementListVo.date) &&
        Objects.equals(this.type, statementListVo.type) &&
        Objects.equals(this.isArrival, statementListVo.isArrival);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, money, shareMoney, summary, date, type, isArrival);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class StatementListVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    money: ").append(toIndentedString(money)).append("\n");
    sb.append("    shareMoney: ").append(toIndentedString(shareMoney)).append("\n");
    sb.append("    summary: ").append(toIndentedString(summary)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    isArrival: ").append(toIndentedString(isArrival)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

